package com.hxzy.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 后台用户登录的DTO
 */
@Getter
@Setter
@ApiModel(value = "后台登录模型")
public class AdminLoginDTO {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",required = true)
    private String loginName;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码",required = true)
    private String code;

    @NotBlank(message = "验证码令牌不能为空")
    @ApiModelProperty(value = "验证码令牌",required = true)
    private String uuid;
}
